package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.ActivitySeckillPrizeCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ActivitySeckillPrize对象", description = "")
public class ActivitySeckillPrize implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "奖品名称（最大字符限制14个）")
    private String name;

    @ApiModelProperty(value = "奖品图标")
    private String imageUrl;

    @ApiModelProperty(value = "奖品说明")
    private String description;

    @ApiModelProperty(value = "类型")
    private ActivitySeckillPrizeCategory category;

    @ApiModelProperty(value = "奖品详情")
    private String details;

    @ApiModelProperty(value = "价值")
    private BigDecimal values;

    @ApiModelProperty(value = "奖项ID")
    private Long activityAwardId;

    @ApiModelProperty(value = "活动ID")
    private Long activityId;

    @ApiModelProperty(value = "是否线上")
    private Boolean isOnline;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

}
